<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$title} 管理中心 - {$adminfirendtitle} </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<link href="styles/page.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/action.js"></script>
</head>
<body>
<h1>
<span class="action-span1">{$title} 管理中心  - {$adminfirendtitle} </span>
<div style="clear:both"></div>
</h1>
<div class="list-div" id="listDiv">
<table width="100%" cellspacing="1" cellpadding="2" id="list-table">
  <tr>
    <th>UID</th>
    <th>名称</th>
    <th>地址</th>
    <th>排序（数值越到越靠前）</th>
    <th>状态</th>
    <th></th>
  </tr>
  {if $friendinfo}
  {section name=val loop=$friendinfo}
  <tr>
	<td>{$friendinfo[val].id}</td>
	<td>{$friendinfo[val].title}</td>
	<td>{$friendinfo[val].link}</td>
	<td><input type="text" value="{$friendinfo[val].rank}" onblur="upfriendlinkrank({$friendinfo[val].id},this.value,'friend')"></a></td>
	<td>{if $friendinfo[val].state == 0}显示{else}不显示{/if}</td>
	<td><a href="friendadd.php?act=edit&id={$friendinfo[val].id}">修改</a>链接内容</td>
  </tr>
  {/section}
  {else}
  <tr>
	<td>没有数据</td>
  </tr>
  {/if}
  
  </table>
 {include file="./pageclass.tpl"}
</div>
{include file="foot.tpl"}
</body>
</html>
